import { defineStore } from 'pinia';
import persist from '.././stick/node_modules/pinia-plugin-persistedstate'

const pinia = defineStore()
pinia.use(persist)
export default pinia

export * from './modules/member'

// stores/counter.js
// stores/counter.js

export const useCounterStore = defineStore('counter', {
	state: () => {
		return { count: 0 };
	},
	// 也可以这样定义
	// state: () => ({ count: 0 })
	actions: {
		increment() {
			this.count++;
		},
	},
});
